Solving Di erence Constraints
نویسنده
چکیده
A system of diierence constraints consists of a set of inequalities of the form x i ? x j b i;j. Such systems occur in many applications, e.g., temporal reasoning. The best known algorithm to determine if a system of diierence constraints is feasible (i.e., if it has a solution) and to compute a solution if the system is feasible runs in (mn) time, where n is the number of variables and m is the number of constraints. In this paper, we explore the problem of maintaining a solution to a system of diierence constraints as the system undergoes changes such as the addition or removal of constraints. The problem arises in the context of an interactive system that allows users to model the temporal behavior of a multimedia application as a system of diierence constraints. We present an incremental algorithm for the problem (which enables immediate feedback to the user as and when a constraint added or modiied by the user creates an infeasible system.) Our algorithm processes the addition of a constraint in time O(m + n log n) and the removal of a constraint in constant time, as long as the original system is feasible. (The time taken to process the addition of a constraint can be more precisely described as O(kk + jj log jj), where jj denotes the number of variables whose values are changed to compute the new feasible solution, and kk denotes the number of constraints involving the variables whose values are changed.) If the original system is infeasible, the algorithm processes any change in O(m + n log n) amortized time. The algorithm we present can also be used to check for the existence of negative cycles in a dynamic (i.e., changing) graph.
منابع مشابه
Orr Sommerfeld Solver Using Mapped Finite Di?erence Scheme for Plane Wake Flow
Linear stability analysis of the three dimensional plane wake flow is performed using a mapped finite di?erence scheme in a domain which is doubly infinite in the cross–stream direction of wake flow. The physical domain in cross–stream direction is mapped to the computational domain using a cotangent mapping of the form y = ?cot(??). The Squire transformation [2], proposed by Squire, is also us...
متن کاملNumerical Simulations of the Complex Modi ed Korteweg de Vries Equation
In this paper implementations of three numerical schemes for the numerical simulation of the complex modi ed Korteweg de Vries CMKdV equation are reported The rst is an integrable scheme derived by methods related to the Inverse Scattering Transform IST The second is derived from the rst and is called the local IST scheme The third is a standard nite di erence scheme for the CMKdV equation Trav...
متن کاملSymmetries and ̄ rst integrals of ordinary di ®
This paper describes a new symmetry-based approach to solving a given ordinary di¬erence equation. By studying the local structure of the set of solutions, we derive a systematic method for determining one-parameter Lie groups of symmetries in closed form. Such groups can be used to achieve successive reductions of order. If there are enough symmetries, the di¬erence equation can be completely ...
متن کاملExplicit Numerical Scheme for Solving 1D Schrödinger Equation
Once ReΨ and ImΨ are found from these two coupled di erential equations, the time-dependent probability density |Ψ| for a particle represented by the wave function Ψ can be calculated from |Ψ| = Ψ∗Ψ = (ReΨ) + (ImΨ), where the * denotes the complex conjugate. Our task, then, is to solve Equations (2) and (3) numerically, and this computational approach requires that the partial derivatives be ap...
متن کاملThe Di erence All - Di erence Makes
We perform a comprehensive theoretical and experimental analysis of the use of all-diierent constraints. We prove that generalized arc-consistency on such constraints lies between neighborhood inverse consistency and, under a simple restriction, path inverse consistency on the binary representation of the problem. By generalizing the arguments of Kondrak and van Beek, we prove that a search alg...
متن کاملOn First-Order Two-Dimensional Linear Homogeneous Partial Di erence Equations
Analysis of algorithms occasionally requires solving of rst-order two-dimensional linear homogeneous partial di erence equations. We survey solutions to special cases of the linear recurrence equation (am + bn + c)Fm;n = (dm + en + f)Fm 1;n + (gm + hn + i)Fm 1;n 1 in terms of known functions and establish equivalences between unsolved cases. The article also reviews solution techniques used to ...
متن کامل